window.list=window.list||{};
list.Allitem=function(){
    var s = this;
    annie.Sprite.call(s);
	/*_a2x_need_start*/s.cid_txt=null;s.images_con=null;s.name=null;s.score_txt=null;/*_a2x_need_end*/
    annie.initRes(s,"list","Allitem");
    s.rectFace=new annieUI.FacePhoto();
    s.images_con.addChild(s.rectFace);
};
A2xExtend(list.Allitem,annie.Sprite);
list.Allitem.prototype.id = 0;
list.Allitem.prototype.data = null;
list.Allitem.prototype.initData = function (id, data) {
    var s = this;
    s.id = id;
    s.data = data;
    if (data) {
        s.dataHandler()
        s.visible = true;
    } else {
        s.visible = false;
    }
};

list.Allitem.prototype.dataHandler = function () {
    var s = this;
    s.cid_txt.text = s.id+1;
    s.rectFace.init(s.data.headimgurl, 89, 89,1);
    s.name.text = s.data.nickname;
    s.score_txt.text = s.data.score;
};